home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / ps40sdk / examples / export / history / history.mak < prev    next >
Encoding:
Makefile  |  1996-09-30  |  2.0 KB  |  86 lines

  1. #
  2. #       File: History Plugin Makefile
  3. # Export .8BE
  4. #
  5.  
  6. TARGET  = History
  7. UTILDIR = D:\!CodeWork\Examples\Resources
  8. SOURCES = D:\!CodeWork\Examples\Common\Sources.c
  9. OBJECTS = ..\History.obj HistoryUIWin.obj ..\HistoryScripting.obj $(SOURCES)\PIUtilities.obj $(SOURCES)\WinUtilities.obj $(SOURCES)\WinDialogUtils.obj
  10.  
  11. all: $(TARGET).8BE
  12.  
  13. PSDLLENTRY=DLLInit
  14. TYPE=8BE
  15.  
  16. OS=NT
  17. ENV=WIN32
  18.  
  19. !INCLUDE <$(OS)$(ENV).MAK>
  20.  
  21. .SUFFIXES: .cpp .c
  22.  
  23. INCLUDES = /I.. /I..\..\Common\Rez-files.r /I..\..\Common\Sources.c /I..\..\Common\Headers.h
  24.  
  25. !ifdef nodebug
  26. OPTIM=-Ox -G5
  27. !else
  28. OPTIM=-Zi -Od
  29. !endif
  30.  
  31. COMMON=-nologo -DMSDOS -DMSWindows=1 $(cflags) $(cvars) $(LOCAL_CFLAGS) $(OPTIM) $(INCLUDES)
  32.  
  33. .cpp.obj :
  34.     $(cc) $(COMMON) -Fo$*.obj $*.cpp
  35.  
  36. .c.obj :
  37.     $(cc) $(COMMON) -Fo$*.obj $*.c
  38.  
  39. .rc.res :
  40.     $(rc) $(rcvars) $(INCLUDES) -r -fo$*.res $(cvars) $*.rc
  41.  
  42. .res.rbj :
  43.     cvtres -$(CPU) $*.res -o $*.rbj
  44.  
  45. # Define the dependencies for the RC file.     Dissolve.RC includes PiPL.RSC
  46. $(TARGET).RC: PiPL.RSC
  47. # Made the dependency an include in the .RC file spec at compile time
  48.  
  49. # Define the dependencies for PiPL.RSC. PiPL is auto-generated by CnvtPiPL.EXE 
  50. # taking PiPL.TMP as input
  51. PiPL.RSC: PIPL.TMP
  52.     $(UTILDIR)\cnvtpipl PiPL.TMP PiPL.RSC
  53.  
  54. # Define the dependencies for PiPL.TMP. PiPL.TMP is generated by C Pre-Processor 
  55. # taking <plug-in>.r as input
  56. PIPL.TMP: ..\$(TARGET).R
  57.     $(cc) $(INCLUDES) /EP /DMSWindows=1 /Tc..\$(TARGET).R > PiPL.TMP
  58.  
  59. clean :
  60.     -del *.obj
  61.     -del *.rbj
  62.     -del *.res
  63.     -del *.err        
  64.     -del *.exp
  65.     -del $(TARGET).$(TYPE)
  66.  
  67. #  Generate import library (.lib) and export library (.exp)
  68. #  from a module-definition (.def) file for a DLL
  69. $(TARGET).lib $(TARGET).exp : $(TARGET).def
  70.     LIB /out:$(TARGET).lib /machine:$(CPU) $(OBJECTS) /def:$(TARGET).def
  71.  
  72.  
  73.  
  74. $(TARGET).$(TYPE): $(TARGET).res $(OBJECTS) $(TARGET).exp
  75.     $(link) @<<
  76. $(ldebug)
  77. /dll
  78. /entry:$(PSDLLENTRY)$(DLLENTRY)
  79. /out:$*.$(TYPE)
  80. $(guilibsdll)
  81. $(OBJECTS)
  82. $(TARGET).res
  83. $(TARGET).exp
  84. <<NOKEEP
  85.  
  86.